{% extends 'KeioStudyBundle:Theme:layout_flowergarden.html.twig' %}

{% block title %}
		Blog list
{% endblock %}

{% block content %}
    <h2>Blog</h2>

    {% for entity in entities %}
		 <hr/>
		    <h3>{{ entity.title }}</h3>
		<br><font style="font-weight:bold">Date: </font>{{ entity.datetime|date('d/m/Y - H:i:s') }} (last update: {{ entity.datemodif|date('d/m/Y - H:i:s') }})
		<br><font style="font-weight:bold">Category: </font>{{ entity.category }}
		<br><font style="font-weight:bold">Author: </font>{{ entity.user }}
		{{ entity.blog|raw }}
		<br><a href="{{ path('blog_show', { 'id': entity.id }) }}">Xem tiếp ...</a>
		<br><a href="{{ path('blog_edit', { 'id': entity.id }) }}">Sửa blog ...</a>
	{% endfor %}

{% endblock %}
